#include"lottery_sys.h"
#include"ui.h"
void admin_deal_ctrl(Buyer_t *user_head)
{
	char chose = 0;
	system("clear");
	admin_deal_ui();
	while(1)
	{
		printf("请选择：");
		scanf("%c",&chose);
		cleaninput();
		switch(chose)
		{
			case '1':
				show_user_list(user_head);
				break;
			case '2':
				printf("按帐号排序 \n");
				sort_name(user_head);
				break;
			case '3':
				printf("按金额排序 \n");
				sort_money(user_head);
				break;
			case '4':
				printf("查询购买记录 \n");
				//look_user();
				break;
			default:
				return;
		}
	}
}
